package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("factory")
public class FactoryDO {
    @TableId(type = IdType.AUTO) // 自增
    @TableField("id")
    private Integer id;
    private String name; // 厂名
    private String address; // 地址
    private String email; // 电邮
    private String phone; // 联系电话
    private String leader; //负责人
    private String mainCamp; // 主营

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getMainCamp() {
        return mainCamp;
    }

    public void setMainCamp(String mainCamp) {
        this.mainCamp = mainCamp;
    }

    @Override
    public String toString() {
        return "FactoryDo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", leader='" + leader + '\'' +
                ", mainCamp='" + mainCamp + '\'' +
                '}';
    }
}
